names = ['lily', 'abc', 'jack', 'a', 'steven', 'bob']

# 获取长度大于3的名字，并且首字母大写
new_list = [name.capitalize() for name in names if len(name) > 3]

print(new_list)